package zumbilandia.cenario;

public class MatrixExample {
	 
		  public static void main(String[] args)  {
		  int array[][]= {{1,4,7},{2,5,8}, {3,6,9}};
		  System.out.println("Row size= " + array.length);
		  System.out.println("Column size = " + array[1].length);
		  outputArray(array);
		  }
		  
		 public static void outputArray(int[][] array) {
		 int rowSize = array.length;
		 int columnSize = array[0].length;
		 for(int i = 0; i <= 2; i++) {
		 System.out.print("[");
		 for(int j = 0; j <= 2; j++) {
		 System.out.print(" " + array[i][j]);
		 }
		 System.out.println(" ]");
		 }
		 System.out.println();
		 }
		
	
}
